# -*- coding:utf-8 -*-

from flask import Flask
app = Flask(__name__)

@app.route('/')
def index():
    return "主页"

@app.route('/hello')
def hello():
    return "hello world"

@app.route('/user/<username>')
def user_name(username):
    #显示用户的名字
    return 'User %s' % username

@app.route('/user/<int:userid>')
def user_id(userid):
    #显示用户id,只显示用户提交的整数型ID
    return r'user:方记普 id:%i' % userid

@app.route('/projects/')
def projects():


if __name__ == "__main__":
    app.run(host='0.0.0.0', debug=True)